/*
 * @Author: hechengfei h349187021@163.com
 * @Date: 2022-08-10 14:48:42
 * @LastEditors: hechengfei h349187021@163.com
 * @LastEditTime: 2022-08-23 15:44:18
 * @FilePath: \xiangmu\src\components\contractmanagement\WeekAdd.jsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AEC
 */
import React from 'react'
import ContractTable from './ContractTable'
import GetPages from './GetPages';
import { inject, observer } from 'mobx-react'

import '../../assets/css/contract/GetPages.css'
function WeekAdd(props) {
  const onPageChange = (page, size) => {
    props.contractStore.currentPage = page
    props.contractStore.pageSize = size
  }
  return (
    <div className='ContractFather'>
      <ContractTable />
      <GetPages total={props.contractStore.total} onPageChange={onPageChange} className='GetPages' />
    </div>
  )
}
export default inject('contractStore')(observer(WeekAdd))
